package org.microdream.easy.deploy.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @Title: app页面控制层
 * @author:沈明可
 * @create: 2019-09-09 21:13
 */
@Controller
public class DAppWeb {

    @GetMapping("app")
    public String main(){
        return "/pages/app/appMain";
    }

    @GetMapping("appAdd")
    public String appAdd(){
        return "/pages/app/appAdd";
    }

    @GetMapping("appUpdate")
    public String dUserUpdate(Map<String, Object> map, Integer id){
        map.put("id",id);
        return "/pages/app/appUpdate";
    }

}
